#include<stdio.h>
#include<sys/types.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<unistd.h>
#include<string.h>
int main()
{
    int fd1 = open("log.txt",O_CREAT | O_WRONLY | O_TRUNC , 0666);
    int fd2 = open("log1.txt",O_CREAT | O_WRONLY | O_TRUNC , 0666);
    int fd3 = open("log2.txt",O_CREAT | O_WRONLY | O_TRUNC , 0666);
    int fd4 = open("log3.txt",O_CREAT | O_WRONLY | O_TRUNC , 0666);

    printf("%d\n%d\n%d\n%d\n",fd1,fd2,fd3,fd4);

    close(fd1);
    close(fd2);
    close(fd3);
    close(fd4);

    return 0;
}